//
//  KYHeader.h
//  KYAnalytics
//
//  Created by 罗新 on 2017/10/16.
//  Copyright © 2017年 kuaiyan. All rights reserved.
//

#ifndef KYHeader_h
#define KYHeader_h
/***********************************环境开关***********************************************/
#define TARGET_ENV_SIT  0
#define TARGET_ENV_PRE  1
#define TARGET_ENV_PRD  0


#if TARGET_ENV_SIT

#define kAppServerForHttp                     @"http://kuaiyan.30lm.com"
#define kAppServerForHttps                    @"http://kuaiyan.30lm.com"

#elif TARGET_ENV_PRE

#define kAppServerForHttp                     @"http://www.kuaiyan.com"
#define kAppServerForHttps                    @"https://api.kuaiyan.com"

#elif TARGET_ENV_PRD

#define kAppServerForHttp                     @"http://www.kuaiyan.com"
#define kAppServerForHttps                    @"https://www.kuaiyan.com"

#endif

#define DEBUGLOG 0

#ifdef  DEBUGLOG
#       define DLog(fmt, ...) NSLog((@"%s [Line %d] " fmt), __PRETTY_FUNCTION__, __LINE__, ##__VA_ARGS__);
#else
#       define DLog(...)
#endif


/***********************************URL***********************************************/
//v参数上传接口
#define vPostInterface                  @"api/appMessage.php"
//IP获取地址接口
#define AddressInterface                  @"https://restapi.amap.com/v3/ip"


/***********************************其他***********************************************/
// 字符串是否为空
#define IsStrEmpty(_ref)    (((_ref) == nil) || ([(_ref) isEqual:[NSNull null]]) ||([(_ref)isEqualToString:@""]) || ([(_ref)isEqualToString:@"(null)"]))

#endif /* KYHeader_h */
